projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df3b884
)
stackswitcher: Avoid calling gtk_widget_destroy()
author
Timm Bäder
<mail@baedert.org>
Fri, 21 Feb 2020 08:08:05 +0000
(09:08 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 25 Feb 2020 10:08:25 +0000
(11:08 +0100)
gtk/gtkstackswitcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstackswitcher.c
b/gtk/gtkstackswitcher.c
index 979d0cdd111f700b2f24a6228354ecb1229cf59d..48173692eb7af70311315ed11e7c2879c27c29a2 100644
(file)
--- a/
gtk/gtkstackswitcher.c
+++ b/
gtk/gtkstackswitcher.c
@@
-136,7
+136,7
@@
rebuild_child (GtkWidget *self,
button_child = gtk_bin_get_child (GTK_BIN (self));
if (button_child != NULL)
- gtk_
widget_destroy (
button_child);
+ gtk_
container_remove (GTK_CONTAINER (self),
button_child);
button_child = NULL;